//
//  NSTimer+LKExtension.m
//  LKCircleScrollViewDemo
//
//  Created by LIUKUN-PC on 16/7/12.
//  Copyright © 2016年 liukun. All rights reserved.
//

#import "NSTimer+LKExtension.h"

@implementation NSTimer (LKExtension)

- (void)pause {
    [self setFireDate:[NSDate distantFuture]];
}

- (void)restart {
    [self restartAfterDelay:0];
}

- (void)restartAfterDelay:(NSTimeInterval)timeInterval {
    [self setFireDate:[NSDate dateWithTimeInterval:timeInterval sinceDate:[NSDate date]]];
}

- (void)stop {
    [self invalidate];
}


@end
